package com.dhcc.sds.standard.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.standard.dto.TreeNode;
import com.dhcc.sds.standard.entity.SdsStandSourceEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SdsStandDataSourceMapper extends BaseMapper<SdsStandSourceEntity> {
    List<SdsStandSourceEntity> list(@Param("parentId") Long parentId);

    List<SdsStandSourceEntity> page(@Param("page") Page<SdsStandSourceEntity> page, @Param("map") Map<String, Object> map);

    List<ZTreeNode> tree();

    List<SdsStandSourceEntity> exportData();

    List<TreeNode> selectLevel();

    List<TreeNode> selectSecondary(@Param("parentId") Long parentId);
}
